<form action="${request.contextPath}/organization/organizationSelect" id="organizationSelectForm" name="organizationSelectForm" onsubmit="return dialogSearch(this);" method="post">
<div class="searchBar" >
	<table class="searchContent">
		<tr>
			<td>
				组织编号：<input id="organizationDto.organizationCode" name="organizationDto.organizationCode" value="${organizationDto.organizationCode?default('')}"/>
			</td>
			<td>
				组织名称：<input id="organizationDto.organizationName" name="organizationDto.organizationName" value="${organizationDto.organizationName?default('')}"/>
			</td>
			<td>
				组织等级：<select id="organizationDto.organizationLevel" name="organizationDto.organizationLevel" style="width:133px">
					<option value=-1>---------请选择---------</option>
				<#if organizationLevelList?exists> 
				<#list organizationLevelList as organizationLevel>
					<#if organizationLevel.key?exists&&organizationDto.organizationLevel?exists&&organizationLevel.key==organizationDto.organizationLevel>
						<option value=${organizationLevel.key?default('-1')} selected="selected">${organizationLevel.value?default('')}</option>
					<#else>
						<option value=${organizationLevel.key?default('-1')}>${organizationLevel.value?default('')}</option>
					</#if>
				</#list> 
				</#if>
				</select>
			</td>
		</tr>
		<tr>
			<td>
				组织类型：<select id="organizationDto.organizationType" name="organizationDto.organizationType" style="width:133px">
					<option value=-1>---------请选择---------</option>
				<#if organizationTypeEnumList?exists> 
				<#list organizationTypeEnumList as organizationType>
					<#if organizationType.key?exists&&organizationDto.organizationType?exists&&organizationType.key==organizationDto.organizationType>
						<option value=${organizationType.key?default('-1')} selected="selected">${organizationType.value?default('')}</option>
					<#else>
						<option value=${organizationType.key?default('-1')}>${organizationType.value?default('')}</option>
					</#if>
				</#list> 
				</#if>
				</select>
			</td>
		</tr>
	</table>
	<div class="subBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			<li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>重置</span></a></li>
		</ul>
	</div>
</div>
<div class="page" style="margin-top:4px">
	<div style="width:180px;position: absolute;left:5px" >
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="delete" href="#" onclick=$('#selectOrganizationCheckBox').deleteSelectOrganization()><span>从选中列表中删除</span></a></li>
			</ul>
		</div>
		<div id="aa" style="margin-top:7px">
			已选组织结构列表
		</div>
		<div id="selectedOrganizationList" style="margin-top:1px" layoutH="160">
		</div>
		<script type="text/javascript">
			$(function(){
				$('#selectedOrganizationList').appendSelectElement("selectedOrganization","selectOrganizationCheckBox","${selectedOrganization}");
			})
		</script>
		<!-- 
		<select id="selectedOrganizationList" name="selectedOrganizationList" multiple="multiple" size="18"  style="width:180px">
		</select> -->
	</div>
</form>
	<div style="width:610px;margin-left:182px">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="javascript:;" onclick=$('#selectOrganization').addSelectOrganization("selectedOrganization","selectOrganizationCheckBox","selectedOrganizationList")><span>添加到选中列表</span></a></li>
			</ul>
		</div>
		<table class="table" width="100%" layoutH="190">
			<thead>
				<tr>
					<th width="25"><input type="checkbox" id="checkBox" name="checkBox" /></th>
					<th width="12%">组织编号</th>
					<th width="10%">组织名称</th>
					<th width="10%">组织等级</th>
					<th width="10%">组织类型</th>
					<th width="15%">组织邮编</th>
					<th >组织地址</th>
				</tr>
			</thead>
			<tbody>
			<#if organizationList?exists> 
			<#list organizationList as organization>
				<tr>
					<td><input type="checkbox" id="selectOrganization" name="selectOrganization" value="${organization.organizationId?default('')}:${organization.organizationName?default('')}" /></td>
					<td>${organization.organizationCode?default('')}</td>
					<td>${organization.organizationName?default('')}</td>
					<td>${organization.organizationLevelView?default('')}</td>
					<td>${organization.organizationTypeView?default('')}</td>
					<td>${organization.organizationZipCode?default('')}</td>
					<td>${organization.organizationAddress?default('')}</td>
				</tr>
			</#list> 
			</#if>
			</tbody>
		</table>
		<div id="organizationSelectPaginationBar" name="organizationSelectPaginationBar" class="panelBar" align="center">
			<script type="text/javascript">
				var organizationSelectPagination = new Ryan.Pagination("${page.pageSize}","${page.targetPage}","${page.totalRecord}","${page.totalPage}","organizationSelectPaginationBar","organizationSelectForm","dialog","organizationSelectPagination");
				organizationSelectPagination.render();
			</script>
		</div>
	</div>
</div>
<div class="panelBar" style="margin-top:4px">
	<div class="buttonActive"><div class="buttonContent"><button type="submit">确定</button></div></div>
</div>
